package com.puny.utils
{
	import flexunit.framework.TestCase;

	public class ShufflerTest extends TestCase
	{
		public function ShufflerTest(methodName:String=null)
		{
			super(methodName);
		}
		
		public function testShuffle():void {
			var shuffler:Shuffler = new Shuffler(10);
			var b:Boolean = true;
			for(var i:int = 0;i < 10;i++) {
				b = b&&(shuffler.index(i) == i);
			}
			assertFalse(b);
		}
		
		public function testNonShuffle():void {
			var shuffler:Shuffler = new Shuffler(10,0);
			for(var i:int = 0;i < 10;i++) {
				assertEquals(i,shuffler.index(i));
			}
		}
	}
}